if(nextteam ne eval("/:match_1_1") && nextteam ne eval("/:match_1_2") && nextteam ne eval("/:match_2_1") && nextteam ne eval("/:match_2_2") && nextteam ne eval("/:match_3_1") && nextteam ne eval("/:match_3_2") && nextteam ne eval("/:match_4_1") && nextteam ne eval("/:match_4_2") && nextteam ne eval("/:match_5_1") && nextteam ne eval("/:match_5_2") && nextteam ne eval("/:match_6_1") && nextteam ne eval("/:match_6_2") && nextteam ne eval("/:match_7_1") && nextteam ne eval("/:match_7_2") && nextteam ne eval("/:match_8_1") && nextteam ne eval("/:match_8_2"))
{
set("_root.match_" + matchcount + "_1",nextteam);
set("_root.team_" + matchcount + "_1_id",ranvar);
gotone = 1;
}
}
}
while(gotone != 1);
}
do
{
gotone = 0;
ranvar = random(eval("/:teams"));
test1 = eval("/:teamArray")[ranvar];
power1 = test1[4];
if(random(4 - power1) == 0)
{
nextteam = test1[name_lang];
if(nextteam ne eval("/:match_1_1") && nextteam ne eval("/:match_1_2") && nextteam ne eval("/:match_2_1") && nextteam ne eval("/:match_2_2") && nextteam ne eval("/:match_3_1") && nextteam ne eval("/:match_3_2") && nextteam ne eval("/:match_4_1") && nextteam ne eval("/:match_4_2") && nextteam ne eval("/:match_5_1") && nextteam ne eval("/:match_5_2") && nextteam ne eval("/:match_6_1") && nextteam ne eval("/:match_6_2") && nextteam ne eval("/:match_7_1") && nextteam ne eval("/:match_7_2") && nextteam ne eval("/:match_8_1") && nextteam ne eval("/:match_8_2"))